<?php
	require_once( '../_config/base.inc.php' );
	
	use \dayscript\Application;
	use \dayscript\Enviroment;
	use \dayscript\util\Debug;
	use \dayscript\util\Benchmark;
	use \dayscript\config\Config;
	use \dayscript\config\ApplicationDefaults;
	use \dayscript\ErrorManager;
	
	Application::getInstance( BASE_DIR . '_config/tests.inc.php' );
	ErrorManager::setUproarMode( true ); // Not for production
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>Config Base Test - <?= date( "Y-m-d H:i:s" ) ?></title>
	<link rel="stylesheet" type="text/css" media="all" href="../_resources/styles.css" />
</head>
<body>
<h2>Application with the _config/tests.inc.php config file loaded</h2>
<pre>
<b>Configuraci&oacute;n global:</b>
<b>Propiedades:</b> 
<?php
	$enviromentValues = Enviroment::config( );
	var_dump( $enviromentValues );
	
	echo "\t<b>ENVIROMENT</b>: " . Debug::dumpVar( $enviromentValues['ENVIROMENT'], true );
	if( $enviromentValues )	{
		foreach( $enviromentValues as $key => $value )
			echo "\n\t[" . $key . ']: ' . Debug::dumpVar( $value, true );
	}
?>


<b>Benchmark:</b><?php echo Benchmark::getInstance( ) ?>
</pre>
</body>
</html>
